import { color, Color } from "cc";
import { EAnimationPlayMode, EBuff, EEntityCategory, EGeneralSkill, EPetSkill, EPlayerType, ESkill, ESkillType } from "./Enum";

// buff种类
export const buffConfig = {
  [EBuff.Attack]: { // 金，对玩家
    id: 1,
    name: "攻击提升",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 10,
    type: EBuff.Attack,
    timer: 0,
    elapsed: 0,
    color: Color.YELLOW,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.KnockBack]: { // 金，对怪物
    id: 2,
    name: "击退",
    cd: 1,
    interval: 1,
    duration: 1,
    ap: 0,
    type: EBuff.KnockBack,
    timer: 0,
    elapsed: 0,
    color: Color.YELLOW,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.CriticalChance]: { // 木，对玩家
    id: 3,
    name: "会心一击率提升",
    cd: 1,
    interval: 1, // 间隔时间
    duration: 5,
    ap: 0.05,
    type: EBuff.CriticalChance,
    timer: 0,
    elapsed: 0,
    color: Color.GREEN,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Poison]: { // 木，对怪物
    id: 4,
    name: "中毒",
    cd: 1,
    interval: 1,
    duration: 10,
    ap: 10,
    type: EBuff.Poison,
    timer: 0,
    elapsed: 0,
    color: Color.GREEN,
    isDot: true, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.AttackSpeed]: { // 水，对玩家
    id: 5,
    name: "攻击速度提升",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0.01,
    type: EBuff.AttackSpeed,
    timer: 0,
    elapsed: 0,
    color: Color.BLUE,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Slow]: { // 水，对怪物
    id: 6,
    name: "减速",
    cd: 1,
    interval: 1,
    duration: 3,
    ap: 0.5,
    type: EBuff.Slow,
    timer: 0,
    elapsed: 0,
    color: Color.BLUE,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.CriticalDamage]: { // 火，对玩家
    id: 7,
    name: "会心一击伤害提升",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0.1,
    type: EBuff.CriticalDamage,
    timer: 0,
    elapsed: 0,
    color: new Color(233, 105, 60),
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Burn]: { // 火，对怪物
    id: 8,
    name: "灼烧",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 100,
    type: EBuff.Burn,
    timer: 0,
    elapsed: 0,
    color: new Color(233, 105, 60),
    isDot: true, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Shield]: { // 土，对玩家
    id: 9,
    name: "护盾",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 10,
    type: EBuff.Shield,
    timer: 0,
    elapsed: 0,
    color: Color.GRAY,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Stun]: { // 土，对怪物
    id: 10,
    name: "晕眩",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0,
    type: EBuff.Stun,
    timer: 0,
    elapsed: 0,
    color: Color.GRAY, // 棕色晕眩
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.DefenceDown]: { // 金，对玩家
    id: 11,
    name: "破甲",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0,
    type: EBuff.DefenceDown,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否有持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.AttackDown]: { // 金，对玩家
    id: 11,
    name: "降攻",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0,
    type: EBuff.AttackDown,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否有持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Miss]: { // 金，对玩家
    id: 12,
    name: "命中下降",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0,
    type: EBuff.Miss,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Weak]: { // 金，对玩家
    id: 12,
    name: "减攻击",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 30,
    type: EBuff.Weak,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: true, // 是否为百分比效果
  },
  [EBuff.Fear]: { // 金，对玩家
    id: 12,
    name: "恐惧",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 30,
    type: EBuff.Fear,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Silence]: { // 金，对玩家
    id: 12,
    name: "沉默",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 0,
    type: EBuff.Silence,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Vulnerable]: { 
    id: 12,
    name: "易伤",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 50,
    type: EBuff.Vulnerable,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  }, 
   [EBuff.Blind]: { 
    id: 12,
    name: "致盲",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 50,
    type: EBuff.Blind,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Explosion]: { 
    id: 12,
    name: "毒爆",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 50,
    type: EBuff.Explosion,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Freeze]: { 
    id: 12,
    name: "冰冻",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 50,
    type: EBuff.Freeze,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },
  [EBuff.Disarm]: { 
    id: 12,
    name: "缴械",
    cd: 1,
    interval: 1,
    duration: 5,
    ap: 50,
    type: EBuff.Disarm,
    timer: 0,
    elapsed: 0,
    color: Color.WHITE,
    isDot: false, // 是否为持续伤害
    isPercentage: false, // 是否为百分比效果
  },


}








//武学1 单体
//武学2 全体
//武学3 被动
//武学4 大招

        // 升级武学属性
        // skill.level += 1;
        // skill.ap += growth[0];          // 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
        // skill.criticalChance += growth[1]; // 增加暴击率
        // skill.effectChance += growth[2];   // 增加效果触发几率
        // skill.numOfBullets += growth[3];   // 增加子弹数量
        // skill.moveSpeed += growth[4];      // 增加移动速度
        // skill.cd -=  growth[5];          // 减少调息时间
        // skill.scale += growth[6];          // 增加缩放比例

// 属性成长 ap, buffAp, effectChance, numOfBullets, moveSpeed, scale,cd

// 少林
// 摩诃无量
// 大狮子吼
// 如来千叶手

// 唐门
// 小李飞刀
// 暴雨梨花针
// 乱还击

// 峨眉
// 金顶绵掌
// 灭绝剑法
// 九阴白骨爪

// 丐帮
// 太祖长拳
// 降龙十八章
// 打狗棒法

// 武当
// 太极剑法
// 天地无极
// 万剑归宗

export enum EPassiveSkill {
    // 少林
    ShaolinPassive1 = "ShaolinPassive1", // 易经筋 - 增强基础属性5%
    ShaolinPassive2 = "ShaolinPassive2", // 罗汉阵 - 光环：城墙反震伤害+20%
    ShaolinPassive3 = "ShaolinPassive3", // 金钟罩 - 城墙濒临攻破时变金色护盾，无敌3s

    // 唐门
    TangmenPassive1 = "TangmenPassive1", // 心眼 - 暴击时发射袖箭，造成100%伤害
    TangmenPassive2 = "TangmenPassive2", // 千机变 - 陷阱伤害+30%，-CD 20%
    TangmenPassive3 = "TangmenPassive3", // 追魂索命 - 对中毒敌寇伤害+20%

    // 峨眉
    EmeiPassive1 = "EmeiPassive1", // 慈航普渡 - 光环：城墙每息恢复0.1%耐久
    EmeiPassive2 = "EmeiPassive2", // 冰肌玉骨 - 光环：全体增加攻速15%
    EmeiPassive3 = "EmeiPassive3", // 北冥真气 - 光环：全体增加-CD 5%

    // 丐帮
    GaibangPassive1 = "GaibangPassive1", // 醉蝶狂舞 - 光环：全队暴击率+10%/暴伤+30%
    GaibangPassive2 = "GaibangPassive2", // 逍遥游 - 自身miss后，下次攻击造成200%伤害
    GaibangPassive3 = "GaibangPassive3", // 讨饭决 - 敌寇掉落金钱增加30%
    
    // 武当
    WudangPassive1 = "WudangPassive1", // 坐忘无我 - 护盾获取+10%
    WudangPassive2 = "WudangPassive2", // 无我无剑 - 剑类武器伤害+35%
    WudangPassive3 = "WudangPassive3", // 真武七截 - 光环：全队攻击+10%

    // 天王
    TianwangPassive1 = "TianwangPassive1", // 天王拳 - 自身防御属性变为200%攻击力
    TianwangPassive2 = "TianwangPassive2", // 天王剑 - 敌人距离城墙越近，武当造成的伤害越高（最高+200%）。

//其他
     //场上每存在一个敌人，唐门攻击力提升1%（怪越多越强）。



}


export const PassiveSkillsConfig = {
  // 少林
  [EPassiveSkill.ShaolinPassive1]: {
    desc: "易经筋: 增强基础属性20%",
    levelLimit: 5,
    icon: "pic/skill/passiveSkills/ShaolinPassive1"
  },
  [EPassiveSkill.ShaolinPassive2]: {
    desc: "罗汉阵: 城墙反震伤害+20%",
    levelLimit: 10,
    icon: "pic/skill/passiveSkills/ShaolinPassive2"
  },
  [EPassiveSkill.ShaolinPassive3]: {
    desc: "金钟罩: 城墙濒临时化金钟护体，无敌3息",
    levelLimit: 15,
    icon: "pic/skill/passiveSkills/ShaolinPassive3"
  },
  // 唐门
  [EPassiveSkill.TangmenPassive1]: {
    desc: "心眼: 会心一击时发射袖箭，造成100%伤害",
    levelLimit: 5,
    icon: "pic/skill/passiveSkills/TangmenPassive1"
  },
  [EPassiveSkill.TangmenPassive2]: {
    desc: "千机变: 陷阱伤害+30%，调息缩减20%",
    levelLimit: 10,
    icon: "pic/skill/passiveSkills/TangmenPassive2"
  },
  [EPassiveSkill.TangmenPassive3]: {
    desc: "追魂索命: 对中毒敌寇伤害+20%",
    levelLimit: 15,
    icon: "pic/skill/passiveSkills/TangmenPassive3"
  },
  // 峨眉
  [EPassiveSkill.EmeiPassive1]: {
    desc: "慈航普渡: [阵法]城墙每息恢复0.1%耐久",
    levelLimit: 5,
    icon: "pic/skill/passiveSkills/EmeiPassive1"
  },
  [EPassiveSkill.EmeiPassive2]: {
    desc: "冰肌玉骨: [阵法]全体攻速提升15%",
    levelLimit: 10,
    icon: "pic/skill/passiveSkills/EmeiPassive2"
  },
  [EPassiveSkill.EmeiPassive3]: {
    desc: "北冥真气: [阵法]全体调息缩减5%",
    levelLimit: 15,
    icon: "pic/skill/passiveSkills/EmeiPassive3"
  },
  // 丐帮
  [EPassiveSkill.GaibangPassive1]: {
    desc: "醉蝶狂舞: [阵法]全队会心率+10%/会心伤害+30%",
    levelLimit: 5,
    icon: "pic/skill/passiveSkills/GaibangPassive1"
  },
  [EPassiveSkill.GaibangPassive2]: {
    desc: "逍遥游: 城墙闪避后，下击造成500%伤害",
    levelLimit: 10,
    icon: "pic/skill/passiveSkills/GaibangPassive2"
  },
  [EPassiveSkill.GaibangPassive3]: {
    desc: "讨饭决: 敌寇掉落银两增加30%",
    levelLimit: 15,
    icon: "pic/skill/passiveSkills/GaibangPassive3"
  },
  // 武当
  [EPassiveSkill.WudangPassive1]: {
    desc: "坐忘无我: 护体罡气获取+10%",
    levelLimit: 5,
    icon: "pic/skill/passiveSkills/WudangPassive1"
  },
  [EPassiveSkill.WudangPassive2]: {
    desc: "无我无剑: 剑类武器伤害+35%",
    levelLimit: 10,
    icon: "pic/skill/passiveSkills/WudangPassive2"
  },
  [EPassiveSkill.WudangPassive3]: {
    desc: "真武七截: [阵法]全队攻击+10%",
    levelLimit: 15,
    icon: "pic/skill/passiveSkills/WudangPassive3"
  }
};
        // skill.ap += growth[0];          // 增加攻击力
        // skill.criticalChance += growth[1]; // 增加暴击率
        // skill.effectChance += growth[2];   // 增加效果触发几率
        // skill.numOfBullets += growth[3];   // 增加子弹数量
        // skill.moveSpeed += growth[4];      // 增加移动速度
        // skill.cd -=  growth[5];          // 减少调息时间
        // skill.scale[0] += growth[6];          // 增加缩放比例
        // skill.scale[1] += growth[6];          // 增加缩放比例
export const PetSkillsConfig = {
  [EPetSkill.PetSkill1]:{
    desc: "宠物技能1",
  }

}


// 将军武学
// export enum EGeneralSkill {
//   Fengtiaoyushun = "Fengtiaoyushun", // 风调雨顺
//   Zhongzhichengcheng = "Zhongzhichengcheng", // 忠志诚诚
//   Manzaiergui = "Manzaiergui", // 满载而归
//   Fuzaoshengfeng = "Fuzaoshengfeng", // 斧凿生风

//   Wanjianqifa = "Wanjianqifa", // 万箭齐发
//   Shiwanhuoji = "Shiwanhuoji", // 十万火急
//   Jinjijiagu = "Jinjijiagu", // 紧急加固
//   Fengyunbianse = "Fengyunbianse" // 风云变色

// }

export const GeneralSkillConfig = {
  [EGeneralSkill.Fengtiaoyushun]: {
    icon:"pic/skill/GeneralSkill/Fengtiaoyushun",
    name: "风调雨顺",
  },
  [EGeneralSkill.Zhongzhichengcheng]: {
    icon:"pic/skill/GeneralSkill/Zhongzhichengcheng",
    name: "众志成城",
  },
  [EGeneralSkill.Manzaiergui]: {
    icon:"pic/skill/GeneralSkill/Manzaiergui",
    name: "满载而归",
  },
  [EGeneralSkill.Fuzaoshengfeng]: {
    icon:"pic/skill/GeneralSkill/Fuzaoshengfeng",
    name: "斧凿生风",
  },
  [EGeneralSkill.Wanjianqifa]: {
    icon:"pic/skill/GeneralSkill/Wanjianqifa",
    name: "万箭齐发"
  },
  [EGeneralSkill.Shiwanhuoji]: {
    icon:"pic/skill/GeneralSkill/Shiwanhuoji",
    name: "十万火急"
  },
  [EGeneralSkill.Jinjijiagu]: {
    icon:"pic/skill/GeneralSkill/Jinjijiagu",
    name: "紧急加固"

  },
  [EGeneralSkill.Fengyunbianse]: {
    icon:"pic/skill/GeneralSkill/Fengyunbianse",
    name: "风云变色"
  }

}
export const SkillConfig = {
  // 少林派武学
  [ESkill.ShaolinSkill1]: {
    id: 1,
    name: "摩诃无量",
    desc: "少林刀法绝技，月牙刀气破空而出，刚猛无俦",
    desc2: "少斩出月牙刀气，造成 {ap}% 伤害，几率震退敌寇",
    level: 1,
    maxLevel: 10,
    cd: 1.5,
    moveSpeed: 300,
    duration: 0.1,
    ap: 60,
    buffAp: 10,
    criticalChance: 0,
    effectDuration: 0,
    effectChance: 0.1,
    type: ESkill.ShaolinSkill1,
    skillType: ESkillType.Forward,
    slashColor: Color.YELLOW,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.KnockBack,
    scale: [2,2],
    numOfBullets: 1,
    attributeGrowth: [10,0,0,0,15,0,0.1],// 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "佛光普照:击中分裂三道月牙，每道30%伤害",
    rune2: "降魔刀影:刀气飞行愈久伤害愈高，至多200%",
    rune3: "金刚怒目:30%几率震退敌寇", 
    playSpeed: 0.1,
  },
  [ESkill.ShaolinSkill2]: {
    id: 2,
    name: "大狮子吼",
    desc: "佛门狮吼功，声震八方，慑人心魄",
    desc2: "音波震慑造成{ap}%伤害和 {effectDuration} 息眩晕",
    level: 0,
    maxLevel: 10,
    cd: 10,
    moveSpeed: 300,
    duration: 0.1,
    ap: 100,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0,
    effectDuration: 2, // 眩晕持续时间
    type: ESkill.ShaolinSkill2,
    skillType: ESkillType.InPlace,
    slashColor: Color.YELLOW,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.KnockBack,
    scale: [3,3],
    numOfBullets: 1,
    attributeGrowth: [20,0,0,0,0,0,0.1],// 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "狮威震野:范围扩大100%，附加城墙血量10%伤害",
    rune2: "摄魂梵音:眩晕后敌寇攻击-30%移速-20%持续2息",
    rune3: "伏魔狮吼:施加'业火'，承受自身攻击持续伤害3息",
    playSpeed: 0.1,
  },
  [ESkill.ShaolinSkill3]: {
    id: 3,
    name: "如来千叶手",
    desc: "少林绝技，千手如来掌，掌影纷飞，笼罩全体敌寇",
    desc2: "掌风化作金色叶片对全体敌寇造成多次 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 15,
    moveSpeed: 300,
    duration: 0.1,
    ap: 50,
    buffAp: 10,
    criticalChance: 0.2,
    effectDuration: 0,
    effectChance: 0.5,
    type: ESkill.ShaolinSkill3,
    skillType: ESkillType.Center,
    slashColor: Color.YELLOW,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.KnockBack,
    scale: [6,6],
    numOfBullets: 1,
    attributeGrowth: [30,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "回头是岸:将敌寇拉入幻境历经轮回幻境，3%几率俘虏敌寇",
    rune2: "佛光净土:净化所有敌寇增益减益",
    rune3: "万佛朝宗:伤害化为真实伤害",
    playSpeed: 0.1,
  },

  // 唐门武学
  [ESkill.TangmenSkill1]: {
    id: 21,
    name: "小李飞刀",
    desc: "小李飞刀，例无虚发，一刀封喉",
    desc2: "飞刀造成 {ap}% 伤害，{effectChance}% 几率使目标中毒（每息 {buffAp}% 伤害，持续 {effectDuration} 息）",
    level: 1,
    maxLevel: 10,
    cd: 1.5,
    moveSpeed: 500,
    duration: 0.3,
    ap: 70,
    buffAp: 25,
    criticalChance: 0,
    effectChance: 0.1,
    effectDuration:3,
    type: ESkill.TangmenSkill1,
    skillType: ESkillType.Forward,
    slashColor: Color.GREEN,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.Poison,
    scale: [1,1],
    numOfBullets: 1,
    attributeGrowth: [10,0,0,0,30,0,0],// 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "字母连环:飞刀增至5把，每把50%伤害",
    rune2: "腐骨断肠:对中毒敌寇伤害+50%",
    rune3: "穿心透骨:无视30%防御，对残血敌寇必定会心一击",
    playSpeed: 0.5,
  },
  [ESkill.TangmenSkill2]: {
    id: 22,
    name: "暴雨梨花针",
    desc: "暗器绝技，漫天毒针如雨倾泻，范围杀伤敌寇",
    desc2: "发射毒针造成 {ap}% 伤害，绝对穿透",
    level: 0,
    maxLevel: 10,
    cd: 10,
    moveSpeed: 20,
    duration: 0.2,
    ap: 100,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0,
    effectDuration: 0,
    type: ESkill.TangmenSkill2,
    skillType: ESkillType.InPlace,
    slashColor: Color.GREEN,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.Poison,
    scale: [2.5,2.5],
    numOfBullets: 1,
    attributeGrowth: [20,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "透骨寒芒:毒针致盲敌寇1息",
    rune2: "迷魂瘴气:50%几率造成敌寇易伤3息",
    rune3: "千机爆破:给敌寇施加毒爆，2息后爆炸造成2息内累积的伤害",
    playSpeed: 0.1,
  },
  [ESkill.TangmenSkill3]: {
    id: 23,
    name: "天罗地网",
    desc: "机关秘术，诡谲莫测，连环暗器造成大范围伤害和连环控制",
    desc2: "布置持续存在的陷阱，造成 {ap}% 伤害和随机控制效果（迷幻、易伤、虚弱）",
    level: 0,
    maxLevel: 10,
    cd: 15,
    moveSpeed: 1,
    duration: 0.2,
    ap: 300,
    buffAp: 10,
    criticalChance: 0.0,
    effectChance: 1,
    effectDuration: 0,
    type: ESkill.TangmenSkill3,
    skillType: ESkillType.InPlace,
    slashColor: Color.GREEN,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.Poison,
    scale: [1,1],
    numOfBullets: 1,
    attributeGrowth: [30,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "七绝杀阵:陷阱数量+3",
    rune2: "困兽犹斗:陷阱爆炸范围扩大100%",
    rune3: "丧魂惊魄:陷阱爆炸时造成恐惧", //武学范围内每多一个敌寇，武学调息减少0.5息
    playSpeed: 0.3,
  },

  // 峨眉派武学
  [ESkill.EmeiSkill1]: {
    id: 31,
    name: "金顶绵掌",
    desc: "峨眉掌法，掌势绵柔，多段攻击，似春风化雨却暗藏杀机",
    desc2: "掌风化做三根冰锥追踪敌寇，每击造成 {ap}% 伤害",
    level: 1,
    maxLevel: 10,
    cd: 2,
    moveSpeed: 500,
    duration: 0.3,
    ap: 30,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0.1,
    effectDuration: 1, // 默认效果持续时间为0
    type: ESkill.EmeiSkill1,
    skillType: ESkillType.Forward,
    slashColor: Color.BLUE,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.Slow,
    scale: [1,1],
    numOfBullets: 1,
    attributeGrowth: [10,0,0,0,20,0,0],// 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "透骨寒冰:20%几率无视防御",
    rune2: "霜冻结界:50%几率减速30%",
    rune3: "冰暴指劲:敌寇生命多于75%则必定会心一击",//"如果击杀敌寇，则减少调息0.5息",//"冰锥随机弹射至附近敌寇",
    playSpeed: 0.1,
  },
  [ESkill.EmeiSkill2]: {
    id: 32,
    name: "九阴白骨爪",
    desc: "阴狠毒辣，爪风所至，摧筋断骨",
    desc2: "爪击50%几率无视防御，造成 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 10,
    moveSpeed: 0,
    duration: 0.1,
    ap: 100,
    buffAp: 10,
    criticalChance: 0.1,
    effectDuration: 0,
    effectChance: 0.1,
    type: ESkill.EmeiSkill2,
    skillType: ESkillType.InPlace,
    slashColor: Color.BLUE,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.Slow,
    scale: [3, 3],
    numOfBullets: 1,
    attributeGrowth: [20,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "阴风噬骨:降低目标30%防御持续2息",
    rune2: "分光化影:攻击分裂成四道爪风（每道70%伤害）",
    rune3: "北冥吸星:会心一击回复怒气2点",
    playSpeed: 0.05,
  },
  [ESkill.EmeiSkill3]: {
    id: 33,
    name: "灭绝剑法",
    desc: "剑光如虹，凌厉绝情，所过之处寸草不生",
    desc2: "剑锋扫过 {effectChance}% 几率冰封敌寇造成 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 15,
    moveSpeed: 0,
    duration: 0.3,
    ap: 300,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0.2,
    effectDuration: 2, // 冰封持续时间
    type: ESkill.EmeiSkill3,
    skillType: ESkillType.Center,
    slashColor: Color.BLUE,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.Freeze,
    scale: [5,5],
    numOfBullets: 1,
    attributeGrowth: [30,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "冰心玉律:冰封几率提升至50%",
    rune2: "冰封万里:减速50%",
    rune3: "净世莲华:冰冻的敌寇受到伤害增加100%",
    playSpeed: 0.1,
  },

  // 丐帮武学
  [ESkill.GaibangSkill1]: {
    id: 41,
    name: "投石问路",
    desc: "掷出酒坛造成小范围爆炸",
    desc2: "酒坛爆炸造成 {ap}% 伤害",
    level: 1,
    maxLevel: 10,
    cd: 1.5,
    moveSpeed: 300,
    duration: 0.1,
    ap: 40,
    buffAp: 15,
    criticalChance: 0,
    effectChance: 0,
    effectDuration: 0, // 默认效果持续时间为0
    type: ESkill.GaibangSkill1,
    skillType: ESkillType.Forward,
    slashColor: Color.RED,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: null,
    scale: [1,1],
    numOfBullets: 1,
    attributeGrowth: [10,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "烈焰焚心:50%几率点燃敌寇3息造成15%伤害",
    rune2: "豪饮:附加'醉酒'效果，降低敌寇命中率40%，持续2息",
    rune3: "酒神附体:击中敌寇后，攻击力+1，可叠加",
    rune1EffectChance: 0.1, // 符文1效果几率
    rune2EffectChance: 0.2, // 符文2效果几率
    rune3EffectChance: 0.3, // 符文3效果几率
    playSpeed: 0.2,
  },
  [ESkill.GaibangSkill2]: {
    id: 42,
    name: "降龙十八掌",
    desc: "龙吟震天，横扫千军，天下第一掌",
    desc2: "每条龙造成 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 10,
    moveSpeed: 400,
    duration: 1,
    ap: 60,
    buffAp: 40,
    criticalChance: 0,
    effectChance: 0.1,
    effectDuration: 0, // 默认效果持续时间为0
    type: ESkill.GaibangSkill2,
    skillType: ESkillType.Forward,
    slashColor: Color.RED,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.Burn,
    scale: [1,1],
    numOfBullets: 3,
    attributeGrowth: [20,0,0,1,0,0,0], // 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "亢龙有悔:增加六条龙，几率点燃敌寇",
    rune2: "见龙在田:击中敌寇触发爆炸造成100%伤害",
    rune3: "龙战于野:自身进入“狂龙”状态增强自身会心伤害50%",
    playSpeed: 0.1,
  },
  [ESkill.GaibangSkill3]: {
    id: 43,
    name: "打狗棍法",
    desc: "精妙绝伦，招招制敌，棍影如龙，气势磅礴",
    desc2: "棍影笼罩敌寇形成风暴，造成多次 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 20,
    moveSpeed: 800,
    duration: 3,
    ap: 100,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0.3,
    effectDuration: 2, // 眩晕持续时间
    type: ESkill.GaibangSkill3,
    skillType: ESkillType.InPlace,
    slashColor: Color.RED,
    animationPlayMode: EAnimationPlayMode.LoopToEnd,
    buffType: EBuff.Burn,
    scale: [3,3],
    numOfBullets: 1,
    attributeGrowth: [30,0,0,0,0,0,0.1],
    damage: 0,
    runeId: 0,
    rune1: "吞天食地:把周围的敌寇吸到中心，造成额外伤害",
    rune2: "薪火相传:造成额外的持续伤害，持续3息",
    rune3: "见人伸手:敌寇掉宝率提升",
    playSpeed: 0.05,
  },

  // 武当派武学
  [ESkill.WudangSkill1]: {
    id: 51,
    name: "太极剑法",
    desc: "以柔克刚，敌强愈强，后发先至，多段攻击",
    desc2: "快速挥剑两连刺，每次造成 {ap}% 伤害，{effectChance}% 几率造成眩晕 {effectDuration} 息",
    level: 1,
    maxLevel: 10,
    cd: 2,
    moveSpeed: 400,
    duration: 0.3,
    ap: 30,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0.1,
    effectDuration: 0.5, // 眩晕持续时间
    type: ESkill.WudangSkill1,
    skillType: ESkillType.Forward,
    slashColor: Color.GRAY,
    animationPlayMode: EAnimationPlayMode.Loop,
    buffType: EBuff.Stun,
    scale: [1,1],
    numOfBullets: 1,
    attributeGrowth: [10,0,0,0,25,0,0], // 攻击力，暴击率，效果触发几率，子弹数量，移动速度，调息时间，缩放比例
    damage: 0,
    runeId: 0,
    rune1: "以静制动:第三击命中后，有10%几率立即重置调息", //阴阳流转
    rune2: "以柔克刚:晕眩几率+10%", //以柔克刚
    rune3: "剑气冲霄:第三击触发剑气造成200%伤害",
    playSpeed: 0.05,
  },

  [ESkill.WudangSkill2]: {
    id: 52,
    name: "万剑归宗",
    desc: "武当剑术绝技，万剑齐发，无死角杀伤",
    desc2: "召唤漫天剑雨造成多次 {ap}% 伤害",
    level: 0,
    maxLevel: 10,
    cd: 10,
    moveSpeed: 0,
    duration: 5,
    ap: 50,
    buffAp: 10,
    criticalChance: 0,
    effectChance: 0,
    effectDuration: 1.5, // 缴械持续时间
    type: ESkill.WudangSkill2,
    skillType: ESkillType.Forward,
    slashColor: Color.GRAY,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.Stun,
    scale: [2,12],
    numOfBullets: 1,
    attributeGrowth: [20,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "剑心通明:所有武学调息减0.1息",
    rune2: "剑护山河:额外造成敌寇当前生命5%伤害",
    rune3: "人剑合一:对生命值低于30%的敌寇造成真实伤害",
    playSpeed: 0.1,
  },
  [ESkill.WudangSkill3]: {
    id: 53,
    name: "天地无极",
    desc: "太极两仪，四象八卦，天地无极",
    desc2: "召唤太极造成 {ap}% 伤害并晕眩 {effectDuration} 息",
    level: 0,
    maxLevel: 10,
    cd: 20,
    moveSpeed: 0,
    duration: 0.1,
    ap: 100,
    buffAp: 10,
    criticalChance: 0,
    effectDuration: 1, // 晕眩持续时间
    effectChance: 0.1,
    type: ESkill.WudangSkill3,
    skillType: ESkillType.InPlace,
    slashColor: Color.GRAY,
    animationPlayMode: EAnimationPlayMode.Normal,
    buffType: EBuff.Stun,
    scale: [10,10],
    numOfBullets: 1,
    attributeGrowth: [30,0,0,0,0,0,0],
    damage: 0,
    runeId: 0,
    rune1: "乾坤无极:杀伤范围扩大100%",
    rune2: "阳仪·封兵:太极白色部分的敌寇缴械2息",
    rune3: "阴仪·归墟:太极黑色部分的敌寇有10%几率被吞噬",
    playSpeed: 0.2,
  },

  //被动武学

};